﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ClassLibrary.DAO;
using ClassLibrary.Entitty;

public partial class Admin_hienthi_noidung_home : AdminPager
{
    TblNoiDungTrangHomeDAO noidungHomeDAO = new TblNoiDungTrangHomeDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadNoiDungHome();
        }
    }
    private void loadNoiDungHome()
    {
        string id = Request.QueryString["id"];
        TblNoiDungTrangHome dt = noidungHomeDAO.GetNoiDung_ByID(Global.ConvertToInt(id));
        lbNoidung.Text = Server.HtmlDecode(dt.NoiDung_Cot1);
        label2.Text = Server.HtmlDecode(dt.NoiDung_Cot2);
        label3.Text = Server.HtmlDecode(dt.NoiDung_Cot3);
        lbBotoom.Text = Server.HtmlDecode(dt.Noidung);
    }


}
